<?php
/**
 * Projecte
 * 
 * @version 1.0  20120213091100
 * @author jferrert@copernic.cat  13/02/2012
 * @copyright Creative commons (by-nc-nd) Reconeixement - NoComercial - CompartirIgual 
 */
?>
<table border="1">
	<tr>
		<th><?php echo _('accions'); ?></th>
		<th><?php echo _('nom_objecte'); ?></th>
		<th><?php echo _('minuts'); ?></th>
		<th><?php echo _('actiu'); ?></th>
	</tr>  
	<?php foreach($taula as $fila){ ?> 
		<tr>       
			<td>
				<a href="#" title="Mostrar" onclick="javascript:getData(<?php echo $show; ?>&id=<?php echo $fila["id"]; ?>','capa3');">
					<img src="imatges/hide.gif" border=0 >
				</a>
				<a href="#" title="Editar" onclick="javascript:getData(<?php echo $edit; ?>&id=<?php echo $fila["id"]; ?>','capa3');">
					<img src="imatges/edit.gif" border=0 >
				</a>
				<a href="#" title="Eliminar" 
				   onclick="javascript:if(confirm('<?php echo _('vols_eliminar'); ?> :\n<?php echo $fila["nom_objecte"];  ?> ')) getData(<?php echo $delete; ?>&id=<?php echo $fila["id"]; ?>','capa3');">
					<img src="imatges/delete.gif" border=0 >
				</a>
			</td>
			<td><?php echo($fila["nom_objecte"]); ?>&nbsp;</td>
			<td style="text-align:right;"><?php echo $fila["minuts"]; ?>&nbsp;</td>
			<td style="text-align:right;"><?php echo $fila["actiu"]; ?>&nbsp;</td>
			</tr>
	<?php } ?>
</table>
<input type="button" value="<?php echo _('tornar'); ?>" onClick="javascript:getData(<?php echo $scriptTornar; ?>)"> ---- 
<input type="button" value="<?php echo _('afegir'); ?>" onClick="javascript:getData(<?php echo $scriptAfegir; ?>)">
